<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/tags/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>音频管理</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/query_list.css"/>
    <script type="text/javascript" src="${ctx}/static/js/who_be_like/query_like_video.js"></script>
    <script type="text/javascript" src="${ctx}/static/jquery/common.js"></script>
    <script type="text/javascript" src="${ctx}/static/jquery/validatebox.js"></script>
    <!-- 加载上传控件的css 和 js -->
    <link rel="stylesheet" type="text/css" href="${ctx}/static/jquery/uploadify/uploadify.css"/>
    <script type="text/javascript" src="${ctx}/static/jquery/uploadify/swfobject.js"></script>
    <script type="text/javascript" src="${ctx}/static/jquery/uploadify/jquery.uploadify_zh.v2.1.4.js"></script>

    <%--
        <style>
            #fm th {
                text-align: right;
                font-weight: normal;
            }
        </style>
        <script type="text/javascript">
            function myformatter(date) {
                var y = date.getFullYear();
                var m = date.getMonth() + 1;
                var d = date.getDate();
                return y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d);
            }

            function getLastMonthYestdy(date) {
                var daysInMonth = new Array([0], [31], [28], [31], [30], [31], [30], [31], [31], [30], [31], [30], [31]);
                var strYear = date.getFullYear();
                var strDay = date.getDate();
                var strMonth = date.getMonth() + 1;
                if (strYear % 4 == 0 && strYear % 100 != 0) {
                    daysInMonth[2] = 29;
                }
                if (strMonth - 3 == 0) {
                    strYear -= 1;
                    strMonth = 12;
                } else if (strMonth - 3 < 0) {
                    strYear -= 1;
                    strMonth = 12 + strMonth - 3;
                } else {
                    strMonth -= 3;
                }
                strDay = daysInMonth[strMonth] >= strDay ? strDay : daysInMonth[strMonth];
                if (strMonth < 10) {
                    strMonth = "0" + strMonth;
                }
                if (strDay < 10) {
                    strDay = "0" + strDay;
                }
                datastr = strYear + "-" + strMonth + "-" + strDay;
                return datastr;
            }


            //页面加载
            $(function () {
                var curr_time = new Date();
                $("#startDate").datebox("setValue", getLastMonthYestdy(curr_time));
                $("#endDate").datebox("setValue", myformatter(curr_time));
                //获取时间
    //            var beginTime = $("#startDate").datebox("getValue");
    //            var endTime = $("#endDate").datebox("getValue");
            });
        </script>--%>
</head>
<body>
<div id="dataGridToolbar" region="north" border="false"
     style="border-bottom: 1px solid #ddd; height: 100px; padding: 2px 5px; background: #fafafa;">
    <div style=" font-size: 12px">
        <table width="100%" style="table-layout:fixed;">
            <tr>
                <%--<td style="width:7%;height: 30px;text-align: right; ">
                    <span>音频ID: </span>
                </td>
                <td style="width: 15%;">
                    <input name="audioId" id="search_audioId"/>
                </td>--%>
                <td style="width: 7%;text-align: right ">
                    <span>标题:</span>
                </td>
                <td style="width: 18%;">
                    <input name="audioTitle" id="search_audioTitle"/>
                </td>
                <%--<td style="width: 7%; text-align: right">
                    <span>类型: </span>
                </td>
                <td style="width: 18%;">
                    <input name="audioType" id="search_audioType"/>
                </td>--%>
                <td style="width: 7%; text-align: right">
                    <span>关键词: </span>
                </td>
                <td style="width: 18%;">
                    <input name="keyword" id="search_keyword"/>
                </td>
                <%--<td style="width: 7%; text-align: right">
                    <span>微略图ID: </span>
                </td>
                <td style="width: 18%;">
                    <input name="fileId" id="search_fileId"/>
                </td>--%>
                <td style="width: 8%; text-align: right;">
                    <span>是否有效: </span>
                </td>
                <td style="width: 17%;">
                    <input id="delTag" class="easyui-combobox" name="delTag" data-options="
                                url:'<c:url value="/sys/queryComboboxByDict.html?type=DEL_TAG_TYPE&selected=0" />',
                                method:'get',
                                valueField:'id',
                                panelHeight:'auto',
                                onLoadError: function (httpRequest) {
                                    displayJsonError(httpRequest);
                                }
                            ">
                </td>
            </tr>
            <tr>
                <td style="width: 8%; text-align: right;">
                    <span>发布状态:</span>
                </td>
                <td style="width: 17%;">
                    <input id="video_state" class="easyui-combobox" name="state" data-options="
                                    url:'<c:url value="/sys/queryComboboxByDict.html?type=VIDEO_STATE&selected=-1" />',
                                    method:'get',
                                    valueField:'id',
                                    panelHeight:'auto',
                                    onLoadError: function (httpRequest) {
                                        displayJsonError(httpRequest);
                                    }
                                ">
                </td>


                <%--<td style="width: 7%; text-align: right">
                    <span>描述: </span>
                </td>
                <td style="width: 18%;">
                    <input name="details" id="search_details"/>
                </td>--%>
                <td style="width: 8%; text-align: right;">
                    <span>发布时间:</span>
                </td>
                <td style="width: 17%;">
                    <%--<select id="dateOption" name="dateOption" class="easyui-combobox" style="width: 135px;">
                        <option value="">请选择</option>
                        <option value="createTime">创建时间</option>
                        <option value="updateTime">更新时间</option>
                    </select>--%>
                    <input type="text" id="startDate" name="startDate" readonly class="easyui-datebox" style="width: 130px;"/>&nbsp;至&nbsp;<input
                        type="text" id="endDate" name="endDate" class="easyui-datebox" style="width: 130px;"/>
                </td>
                <td style="width: 60px; text-align: right;"></td>
                <td style="text-align:left;">
                    <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="doSearch('load');">搜索</a>
                </td>
            </tr>
        </table>
        <div>
            <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="doInsert()">添加</a>
            <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-remove" plain="true"
               onclick="deleteSubmit()">删除</a>
        </div>
    </div>
</div>

<form id="deleteForm" method="post">
    <input type="hidden" id="audioId" name="audioId"/>
</form>
<!-- 列表DIV -->
<table id="displayTable"></table>
</body>
</html>

